from starlette_admin import EnumField
from starlette_admin.contrib.sqla import ModelView

from src.application.server.enums import ServerStatus


class VPNServerView(ModelView):
    fields = [
        "id",
        "name",
        EnumField("status", enum=ServerStatus, select2=False),
        "description",
        "ip_address",
        "ssh_port",
        "login",
        "password",
        "was_added",
    ]
